<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<div class="border2"></div>
<div class="box2_c title_div">
<h1 class="step1 bg_locker"><a href="javascript:" onClick="club_m(this)">Edit
your personal details</a></h1>
<div class="table_box" style="<?php if($this->getRequest()->getParam('t', false) == 1) echo 'display: block;'; ?>">
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<form action="<?php echo $this->getUrl('customer/account/editPost') ?>" method="post" id="form-validate">
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getCustomer())->toHtml() ?>
<table class="input_table" cellspacing="0" cellpadding="0">
	<tr>
		<th width="50%">Your Email Address</th>
		<th width="50%">Your Telephone Number</th>
	</tr>
	<tr>
		<td><input name="email" type="text" class="input3_white input_color"
			value="<?php echo $this->getCustomer()->getEmail();?>"></td>
		<td><input name="telephone" type="text" class="input3_white input_color"
			value="<?php echo $this->htmlEscape($this->getCustomer()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>"></td>
	</tr>
</table>
<table class="input_table" cellspacing="0" cellpadding="0">
	<tr>
		<th colspan="3">Your Postal Address</th>
	</tr>
	<tr>
		<td colspan="3"><input name="address1" type="text" id="street_1"
			class="input4_white input_color" value="<?php echo $this->htmlEscape($this->getCustomer()->getAddress1()) ?>" title="<?php echo $this->__('Street Address') ?>"></td>
	</tr>
	<tr class="second_tr">
		<td width="334"><input name="address2" id="street_2" type="text" class="input5_white input_color"
			value="<?php echo $this->htmlEscape($this->getCustomer()->getAddress2()) ?>"></td>
		<th width="90" style="text-align:center">Your Postcode</th>
		<td width="163"><input name="postcode" type="text" class="input6_white input_color"
			value="<?php echo $this->htmlEscape($this->getCustomer()->getPostcode()) ?>"></td>
	</tr>
</table>
<table class="input_table"><tr><td style="text-align:right;padding-right:5px;padding-top:10px;"><input type="image" src="<?php echo $this->getSkinUrl('images/bt_submit.png');?>"></td><tr></table>
</form>
<script type="text/javascript">
    var dataForm = new VarienForm('form-validate', true);
</script>
</div>
<div class="clearfloat"></div>
</div>
<div class="border2"></div>
